package com.project.code.spider.entity.params;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * spider模块 AI调价-爬虫平台 add 参数
 *
 * @author WangYan
 * @date 2023-05-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Builder
@ApiModel(value = "spider模块 AI调价-爬虫平台 add 参数")
public class SpiderPlatformAddParams {

    @ApiModelProperty(value = "id", required = false)
    private Long id;

    @NotNull(message = "爬价平台id 不能为null")
    @ApiModelProperty(value = "爬价平台id", required = true)
    private Long platformId;

    @NotBlank(message = "爬价平台名称 不能为空")
    @ApiModelProperty(value = "爬价平台名称", required = true)
    private String platformName;

    @NotNull(message = "爬价开关:0=关闭爬价,1=开启爬价 不能为null")
    @ApiModelProperty(value = "爬价开关:0=关闭爬价,1=开启爬价", required = true)
    private Integer isOpen;

    @NotNull(message = "重叠油站匹配类型 不能为null")
    @ApiModelProperty(value = "重叠油站匹配类型", required = true)
    private Integer overlappingMatchType;

    @NotNull(message = "删除标志：0=未删除，1=已删除 不能为null")
    @ApiModelProperty(value = "删除标志：0=未删除，1=已删除", required = true)
    private Integer delFlag;

    @NotEmpty(message = "创建时间 集合不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

    @ApiModelProperty(value = "创建者", required = false)
    private String createUser;

    @NotEmpty(message = "更新时间 集合不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间", required = true)
    private Date updateTime;

    @ApiModelProperty(value = "更新者", required = false)
    private String updateUser;


}
